home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
- Path: Utrecht.NL.net!news
- From: Franz Korntner <fkorntne@bazis.nl>
- Subject: Re: Access carry flag from C
- X-Nntp-Posting-Host: bastion1.bazis.nl
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <312D8414.167E@bazis.nl>
- Sender: news@inter.NL.net (News at newsutr)
- Content-Transfer-Encoding: 7bit
- Organization: NLnet
- References: <Dn1C9z.DGv.0.net@indra.com> <1996Feb1922.17.19.879@koobera.math.uic.edu>
- <31298D20.41C6@bazis.nl> <danpop.824859220@rscernix>
- <312AFACE.41C6@bazis.nl> <TANMOY.96Feb21081640@qcd.lanl.gov>
- Mime-Version: 1.0
- Date: Fri, 23 Feb 1996 09:08:36 GMT
- X-Mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha)
-
- Tanmoy Bhattacharya wrote:
- >
- > In article <312AFACE.41C6@bazis.nl> Franz Korntner <fkorntne@bazis.nl>
- > writes:
- > <snip>
- > 32 bit numbers. According to the (X3J11 / ANSI) standard, the constant
- > INT_MAX (and in this case most limits in limits.h) denotes the minimal
- > limit. It is possible that the physical limit is much higher (or lower
- > in the case of negative values). As I am only interested in the physical
- > limit, the value INT_MAX has no meaning. Only the compiler is fully aware
- > of these limits (and not a header file!) and what I really miss in the
- > standard and/or implementation is a inline function 'maxlimitof(int)',
- > analogical to 'sizeof(int)'.
- >
- > Please quote the standard. I find no discussion of this in my copy;
- > and I suspect it is incorrect.
-
- I only have a copy of the Rationale at this moment, and it is also mentioned
- on page 17, Environmental limits.
-
- 2.2.4.2.1 Sizes of integral types <limits.h>. Such a large body of C code
- has been developed for the 8-bit byte machines that the integer sizes in
- such environments must be considered normative. The prescribed limits are
- minima; an implementation on a machine with 9-bit bytes can be conforming,
- as can an implementation that defines int to be the same width as long.
- page 17.
-
- --
- +-----------------------------------------------------------------------+
- | Franz Korntner at BAZIS, dept. System Development, Leiden, Netherlands|
- | E-mail: fkorntne@hiscom.nl |
- +-----------------------------------------------------------------------+
-